package com.t235.gc.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 日志表(SysLog)实体类
 *
 * @author makejava
 * @since 2021-03-24 08:45:39
 */
public class SysLog implements Serializable {
    private static final long serialVersionUID = -11397343672790176L;

    private Long id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 用户操作
     */
    private String operation;
    /**
     * 请求方式
     */
    private String method;
    /**
     * 请求控制器
     */
    private String controller;
    /**
     * 请求路径
     */
    private String url;
    /**
     * 请求参数
     */
    private String params;
    /**
     * 请求时长
     */
    private Long time;
    /**
     * IP地址
     */
    private String ip;
    /**
     * 异常信息
     */
    private String errormessage;
    /**
     * 创建时间
     */
    private Date ctime;
    /**
     * 日志类型【1.业务日志 2.异常日志】
     */
    private Integer logtype;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getOperation() {
        return operation;
    }

    public void setOperation(String operation) {
        this.operation = operation;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getController() {
        return controller;
    }

    public void setController(String controller) {
        this.controller = controller;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParams() {
        return params;
    }

    public void setParams(String params) {
        this.params = params;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getErrormessage() {
        return errormessage;
    }

    public void setErrormessage(String errormessage) {
        this.errormessage = errormessage;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Integer getLogtype() {
        return logtype;
    }

    public void setLogtype(Integer logtype) {
        this.logtype = logtype;
    }

}
